﻿


using System;
using System.Text;
using System.Collections;
using System.Xml;
using System.Data;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Resources;
using System.Reflection;
using System.Globalization;
using System.Threading;

using Telerik.WebControls;
using UFSoft.UBF.UI.WebControls;
using UFSoft.UBF.UI.WebControls.InterActionComponenet;
using UFSoft.UBF.Util.Log;
using UFSoft.UBF.Util.Context;

//using MagicAjax.UI.Controls;
using UFSoft.UBF.Report.UI.ReportView.Web;
using UFSoft.UBF.UI.WebControlAdapter;
using UFSoft.UBF.UI.FormProcess;
using UFSoft.UBF.UI.IView;
using UFSoft.UBF.UI.Engine;
using UFSoft.UBF.UI.Engine.Builder;
using UFSoft.UBF.UI.Engine.Authorization;
using UFSoft.UBF.UI.MD.Runtime;
using UFSoft.UBF.UI.ActionProcess;
using UFSoft.UBF.UI.ControlModel;
using UFSoft.UBF.UI.Controls;
using UFSoft.UBF.UI.WebControls.Association;
using UFSoft.UBF.UI.WebControls.ClientCallBack;
using System.Web.UI;
using UFSoft.UBF.UI.UIFormPersonalization;
using System.Collections.Specialized;


/***********************************************************************************************
 * Form ID:0c59249d-1971-401c-8e04-4503ceb57e0c 
 * Form Name:TransferLedgerDocListUIForm
 * UIFactory Auto Generator
 ***********************************************************************************************/
namespace TransferLedgerDocListUIModel
{
	[FormRegister("UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDListUI","TransferLedgerDocListUIModel.TransferLedgerDocListUIFormWebPart", "UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDListUI.WebPart", "0c59249d-1971-401c-8e04-4503ceb57e0c","WebPart", "True", 992, 504)] 
	///insert into aspnet_Parts (SysVersion, Path, ClassName, [Assembly], FormId) values (0, 'UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDListUI', 'TransferLedgerDocListUIModel.TransferLedgerDocListUIFormWebPart', 'UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDListUI.WebPart', '0c59249d-1971-401c-8e04-4503ceb57e0c')
	///<siteMapNode url="~/erp/simple.aspx?lnk=0c59249d-1971-401c-8e04-4503ceb57e0c" title="TransferLedgerDocListUIForm"/>
    public partial class TransferLedgerDocListUIFormWebPart : UFSoft.UBF.UI.FormProcess.BaseWebForm
    {
		#region Page Controller/Code Behind
        private static readonly ILogger logger = LoggerManager.GetLogger(typeof(TransferLedgerDocListUIFormWebPart));
        private string assemblyName = System.Reflection.Assembly.GetExecutingAssembly().FullName;
        //private string displayNamePostfix = "displayName";

		#region 强类型化基类属性.
		public new TransferLedgerDocListUIModelAction Action
		{
			get { return (TransferLedgerDocListUIModelAction)base.Action; }
			set { base.Action = value; }
		}
		TransferLedgerDocListUIModelModel _uimodel=null;
		public new TransferLedgerDocListUIModelModel Model
		{
			get 
			{
			     if(_uimodel == null){
			          _uimodel = new TransferLedgerDocListUIModelModel();
			     }
			     return _uimodel; 
			}
			set { _uimodel = value; }
		}
        protected override IUIModel UIModel{
            get{
                return this.Model;
            }
            set{
                this.Model = value as TransferLedgerDocListUIModelModel;
            }
        }
		#endregion 
		public FormAdjust adjust;
        #region variable declaration
        IUFToolbar Toolbar2;
        IUFButton BtnOutput;
        IUFCard Card0;
        IUFButton OnSelect;
        IUFButton OnTransferGLV;
        IUFButton OnCancelTransferGLV;
        IUFButton BtnHD;
        IUFButton SaveClick;
        IUFCard Card3;
        IUFDataGrid DataGrid1;
		UpdatePanel updatePanel;
		HiddenField wpFindID;
		IUFContainer topLevelPanel;     
        IUFSeparator SeparatorInFavorites;
        IUFButton BtnDefaultValues;
        #endregion
        
        #region constructor
        public TransferLedgerDocListUIFormWebPart()
        {
            FormID = "0c59249d-1971-401c-8e04-4503ceb57e0c";
            IsAutoSize = bool.Parse("True");
            NewIsAutoSize = bool.Parse("False");
        }
        #endregion


	
            
	//获取档案版型结果: 

        #region eventBind and databind
        private void EventBind()
        {
			//事件绑定模板
				//Button控件事件
			this.BtnOutput.Click += new EventHandler(BtnOutput_Click);		
						
				//Button控件事件
			this.OnSelect.Click += new EventHandler(OnSelect_Click);		
						
				//Button控件事件
			this.OnTransferGLV.Click += new EventHandler(OnTransferGLV_Click);		
						
				//Button控件事件
			this.OnCancelTransferGLV.Click += new EventHandler(OnCancelTransferGLV_Click);		
						
				//Button控件事件
			this.BtnHD.Click += new EventHandler(BtnHD_Click);		
						
				//Button控件事件
			this.SaveClick.Click += new EventHandler(SaveClick_Click);		
						

	
			//Grid控件的分页事件				
			((UFWebDataGridAdapter)this.DataGrid1).GridMakePageEventHandler += new GridMakePageDelegate(UFGridDataGrid1_GridMakePageEventHandler);
             //Grid控件的客户化筛选，定位事件
            ((UFWebDataGridAdapter)this.DataGrid1).GridCustomFilterHandler += new GridCustomFilterDelegate(UFGridDataGrid1_GridCustomFilterHandler);

            AfterEventBind();
        }
        #endregion            
        
		#region override method
		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad2(e);
		}
		protected override void OnLoadDataDo(EventArgs e)
		{
		    adjust.ProcessAdjustBeforeOnLoad(this);
			if (UIEngineHelper.IsDataBind(PageStatus, this))
			{
				if(this.Model==null){				        
					this.Model = new TransferLedgerDocListUIModelModel();
				}
				OnLoadConsumer(new InParameterModel[]{},new InParameterModel[]{});
				OnLoadData(this);
				this.IsDataBinding = true ; //加载完数据要绑定一次.目前加这.
			}
			else
			{
				//去除.已经移入到OnInit()中.
				//this.Model = (TransferLedgerDocListUIModelModel)this.CurrentState[this.TaskId.ToString()];
			}
			adjust.ProcessAdjustAfterOnLoadData(this);
		            AfterOnLoad();
            
            adjust.ProcessAdjustAfterOnLoad(this);
		}
		protected override void OnPreRender(EventArgs e)
		{
			base.OnPreRender2(e);
		}
        protected override void OnPreRenderDo(EventArgs e)
        {
            adjust.ProcessAdjustBeforeOnPreRender(this);
			base.OnPreRender(e);
			this.CurrentState[this.TaskId.ToString()] = this.Model;
			RegisterClearWebPartPadding();
            UFIDA.U9.UI.PDHelper.FormAuthorityHelper.SetWebPartAuthorization(this);
            
			if (IsDataBinding) //2006-9-7 可由开发人员控制
			{
				BeforeUIModelBinding();
								if(!Page.IsPostBack)
				{
					EnumTypeBinding.BindEnumControls(this);
				}
				UFIDA.U9.UI.Commands.CommandHelper.BindFlexData(this);
				adjust.ProcessAdjustBeforeDataBinding(this);
				if (this.IsOnlyDataBinding)
				{
					this.DataBinding();
				}
				adjust.ProcessAdjustAfterDataBinding(this);

				AfterUIModelBinding();
			}
			adjust.ProcessAdjustAfterOnPreRender(this);
        }
		protected override void OnInit(EventArgs e)
		{
			base.OnInit2(e);
		}
		protected override void OnInitDo(EventArgs e)
		{			 
			this.Page.InitComplete += new EventHandler(Page_InitComplete);
			WebPartBuilder.InitWebPart(this);
            this.Action = new TransferLedgerDocListUIModelAction(this);
            adjust = new FormAdjust();
		    CreateFormChildControls();
		}
        void Page_InitComplete(object sender, EventArgs e)
        {

            adjust.ProcessInit(this);
        }
        #endregion

      
        
        #endregion

	
		/// <summary>
        /// WebPart View
        /// </summary>
        #region view Create Contorls
        private void CreateFormChildControls()
        {
            IUFContainer _panel = UIControlBuilder.BuildTopLevelContainer(this,"TransferLedgerDocListUIForm",true,992,504);
            CommonBuilder.ContainerGridLayoutPropBuilder(_panel, 1, 3, 0, 10, 0, 0, 0, 5);
			InitViewBindingContainer(this, _panel,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_panel, 10,new GridColumnDef[]{new GridColumnDef(992,bool.Parse("False"),"Title"),},new GridRowDef[]{new GridRowDef(28,bool.Parse("True")),new GridRowDef(421,bool.Parse("False")),new GridRowDef(25,bool.Parse("True")),});
            //???还有用么?
            topLevelPanel = _panel;    
            
            UIControlBuilder.BuildCommonControls(this,ref updatePanel,ref wpFindID);
            





	
			_BuilderControl_Toolbar2(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Toolbar2, "1");		


	
			_BuilderControl_Card0(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Card0, "3");		


	
			_BuilderControl_Card3(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Card3, "2");		



			
     
			
			
            EventBind();
            AfterCreateChildControls();
            
        }        







				        
        private void _BuilderControl_Toolbar2(IUFContainer container)
        {
            IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container,"Toolbar2",true, true, "1",992, 28, 0, 0, 1, 1,"100");
            this.Toolbar2 = _Toolbar;
            
            ///foreach Toolbar下的所有控件，增加到此容器
                            this.BtnOutput = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnOutput", "True", "True", 35, 28,"23", "",true,false,"688fd549-5a92-49cc-8072-6d5377f6409a","688fd549-5a92-49cc-8072-6d5377f6409a","2ab71760-d805-44b6-bca1-323f0209db19");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnOutput);
            this.BtnOutput.UIModel = this.Model.ElementID;
            this.BtnOutput.Action = "OutputClick";
	
            
            ((UFWebToolbarAdapter)_Toolbar).RemoveControls();
        }



	                   
        private IUFCard _BuilderControl_Card0(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card0",false,"FunctionBar", true, true, "3","","918c1d55-49c6-4872-b57f-2eed8fac93dc");
			CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 992, 25, 0, 2, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 22, 1, 0, 5, 10, 3, 10, 2);
			InitViewBindingContainer(this, _UFCard,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_UFCard, 5,new GridColumnDef[]{new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(71,bool.Parse("True"),"Value"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(1,bool.Parse("False"),"Spacing"),},new GridRowDef[]{new GridRowDef(20,bool.Parse("True")),});
            this.Card0 = _UFCard;

            ///foreach UFCard下的所有控件，增加到此容器





				this.OnSelect = UIControlBuilder.BuilderUFButton(_UFCard, true, "OnSelect", true, true, 80, 20, 0, 0, 1, 1, "100","", this.Model.ElementID,"OnSelect",false,"c1f039ea-ba69-4078-af12-b3c8fa2db379","c1f039ea-ba69-4078-af12-b3c8fa2db379","0c073ffe-ac6b-493e-a4ab-9c40d12afeab");
	

		
			UIControlBuilder.BuilderUFControl(this.OnSelect, "0");		


				this.OnTransferGLV = UIControlBuilder.BuilderUFButton(_UFCard, true, "OnTransferGLV", true, true, 80, 20, 2, 0, 1, 1, "100","", this.Model.ElementID,"OnTransferGLV",false,"9aafab8f-f45f-4576-a3ae-f7e44a186f6b","9aafab8f-f45f-4576-a3ae-f7e44a186f6b","503e9949-ab67-4930-b070-04778e5c19a8");
	

		
			UIControlBuilder.BuilderUFControl(this.OnTransferGLV, "1");		


				this.OnCancelTransferGLV = UIControlBuilder.BuilderUFButton(_UFCard, true, "OnCancelTransferGLV", true, true, 80, 20, 4, 0, 1, 1, "100","", this.Model.ElementID,"OnCancelTransferGLV",false,"102a235b-193a-419a-a549-feb50a5f7f60","102a235b-193a-419a-a549-feb50a5f7f60","a3ac2ecd-e54f-44fd-b8a4-72d61e390910");
	

		
			UIControlBuilder.BuilderUFControl(this.OnCancelTransferGLV, "2");		


				this.BtnHD = UIControlBuilder.BuilderUFButton(_UFCard, true, "BtnHD", true, false, 80, 20, 0, 0, 1, 1, "100","", this.Model.ElementID,"",false,"651ca789-f618-43bf-be61-a574061f9f6a","","651ca789-f618-43bf-be61-a574061f9f6a");
	

		
			UIControlBuilder.BuilderUFControl(this.BtnHD, "3");		


				this.SaveClick = UIControlBuilder.BuilderUFButton(_UFCard, true, "SaveClick", true, false, 80, 20, 0, 0, 1, 1, "100","S", this.Model.ElementID,"SaveClick",false,"fcbbbec4-e499-417c-a505-62b662c1ee9b","fcbbbec4-e499-417c-a505-62b662c1ee9b","899c679c-3308-4fc0-a396-f4c144aeb28a");
	

		
			UIControlBuilder.BuilderUFControl(this.SaveClick, "4");		



					

            
            container.Controls.Add(_UFCard);
            return _UFCard;
        }

	                   
        private IUFCard _BuilderControl_Card3(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card3",false,"none", true, true, "2","","9132a977-b733-41bc-8338-d491a2f4b4f5");
			CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 992, 421, 0, 1, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 2, 2, 0, 5, 10, 0, 10, 0);
			InitViewBindingContainer(this, _UFCard,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_UFCard, 5,new GridColumnDef[]{new GridColumnDef(971,bool.Parse("True"),"Value"),new GridColumnDef(1,bool.Parse("False"),"Spacing"),},new GridRowDef[]{new GridRowDef(415,bool.Parse("True")),new GridRowDef(1,bool.Parse("False")),});
            this.Card3 = _UFCard;

            ///foreach UFCard下的所有控件，增加到此容器





	
			_BuilderControl_DataGrid1(_UFCard);

		
			UIControlBuilder.BuilderUFControl(this.DataGrid1, "1");		



	

            
            container.Controls.Add(_UFCard);
            return _UFCard;
        }

				





       
        private void _BuilderControl_DataGrid1(IUFContainer container)
        {
            IUFDataGrid _UFGrid = UIControlBuilder.BuildGridControl("DataGrid1", UFSoft.UBF.UI.ControlModel.EditStatus.Browse, false, false,false,false,true,true,20,false, false) ;
  			UIControlBuilder.BuilderUFControl(_UFGrid, "True", "True", "1");
			CommonBuilder.GridLayoutPropBuilder(container, _UFGrid, 972, 421, 0, 0, 2, 2, "100");
			InitViewBindingContainer(this, _UFGrid,  this.Model.TransferLedger, "TransferLedger", "", null, 20, "转总账");
			((UFSoft.UBF.UI.WebControlAdapter.UFWebDataGridAdapter)_UFGrid).PagingStrategy=UFSoft.UBF.UI.ControlModel.GridPagingStrategy.Auto;
			_UFGrid.AllowSelectAllPage=false;
			((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumAllData=false;
		        ((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumSelectedData=false;
            this.DataGrid1 = _UFGrid;
            container.Controls.Add(_UFGrid);



			IUFDataGridColumn column ;
			GridColumn gridColumn ;
	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"ID0","NumberColumnModel", "", 0,this.Model.TransferLedger.Fields["ID"]/*ID*/,"ID", true, false, true, false, false, false, 7, 100, "19.0",true, false,"","a073b178-2c11-4b26-b667-0654d9fa4599","a073b178-2c11-4b26-b667-0654d9fa4599","e36fec7f-acf1-42e1-b173-5b7a107cf745");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"SysVersion0","NumberColumnModel", "", 0,this.Model.TransferLedger.Fields["SysVersion"]/*SysVersion*/,"SysVersion", false, false, true, false, false, true, 7, 100, "19.0",true, false,"0","24b4060c-c490-46c9-98a3-80c081a55c08","24b4060c-c490-46c9-98a3-80c081a55c08","7268cba6-22df-4cb6-9936-b7411ccb27c1");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"AccountPeriod0","TextBoxColumnModel", "", 0,this.Model.TransferLedger.Fields["AccountPeriod"]/*AccountPeriod*/,"AccountPeriod", false, true, true, false, false, true, 0, 100, "50",true, false,"","f0231aa3-3170-4141-b938-0f63390a603e","f0231aa3-3170-4141-b938-0f63390a603e","21b7b508-f2f8-4127-be98-5e82e529183c");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Right, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Department0","ReferenceColumnModel", "", 0,this.Model.TransferLedger.Fields["Department"]/*Department*/,"Department", false, true, true, false, false, true, 7, 100, "19.0",true, false,"","dc77de05-eb9a-4762-b4ae-59fa996bbf2f","dc77de05-eb9a-4762-b4ae-59fa996bbf2f","e26593ca-dea1-4352-af1d-a54264dee837");
			GridControlBuilder.GridReferenceColumnBuilder((IUFFldReferenceColumn)column, ColumnTextAlign.Right, "ID", "Code", "Name", this.Model.TransferLedger.FieldDepartment_Code/*Department_Code*/, this.Model.TransferLedger.FieldDepartment_Name/*Department_Name*/, "82a8f09a-6081-4b12-8735-10ffcaddca48"
			,false,true,580,408);
            ((IUFFldReferenceColumn)column).CtrlId = "e26593ca-dea1-4352-af1d-a54264dee837";
 			((IUFFldReferenceColumn)column).IsMultiOrg  = false ;
           //foreach Reference's input filter parameter

            //foreach Reference's output set data
							
							
							
							
							
							
							
							
							
							
							
            ((IUFFldReferenceColumn)column).ApplyRefRelations();
			  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"StandardCost0","NumberColumnModel", "", 2,this.Model.TransferLedger.Fields["StandardCost"]/*StandardCost*/,"StandardCost", false, true, true, false, false, true, 8, 130, "24.9",true, false,"0","b65abbac-47d5-4833-91a9-134b3416555a","","6e851b0e-4624-4e16-aac8-1237a04effd9");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"NonStandardCost0","NumberColumnModel", "", 2,this.Model.TransferLedger.Fields["NonStandardCost"]/*NonStandardCost*/,"NonStandardCost", false, true, true, false, false, true, 8, 120, "24.9",true, false,"0","d60b213f-8252-4174-a118-5650c5bb7e4b","","229b4366-77c2-4350-a88f-29e3bdb57416");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Wh0","ReferenceColumnModel", "", 0,this.Model.TransferLedger.Fields["Wh"]/*Wh*/,"Wh", false, true, true, false, false, true, 7, 100, "19.0",true, false,"","cc0b5246-7a38-4390-93d8-d9045035d5ae","","5272882b-b493-4d09-a0c8-c87b2b28e1b3");
			GridControlBuilder.GridReferenceColumnBuilder((IUFFldReferenceColumn)column, ColumnTextAlign.Right, "ID", "Code", "Name", this.Model.TransferLedger.FieldWh_Code/*Wh_Code*/, this.Model.TransferLedger.FieldWh_Name/*Wh_Name*/, "1dc5d0ff-a06e-4dd8-a056-f1b266104b57"
			,false,true,580,408);
            ((IUFFldReferenceColumn)column).CtrlId = "5272882b-b493-4d09-a0c8-c87b2b28e1b3";
 			((IUFFldReferenceColumn)column).IsMultiOrg  = false ;
           //foreach Reference's input filter parameter

            //foreach Reference's output set data
							
							
							
							
							
            ((IUFFldReferenceColumn)column).ApplyRefRelations();
			  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"RecycleMoney0","NumberColumnModel", "", 2,this.Model.TransferLedger.Fields["RecycleMoney"]/*RecycleMoney*/,"RecycleMoney", false, true, true, false, false, true, 8, 100, "24.9",true, false,"0","97786c10-5051-4bd6-bb7a-52a3924f284b","97786c10-5051-4bd6-bb7a-52a3924f284b","de6a751f-6cdf-4a34-9baa-cf8b86c9523f");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"WasteRecycleMoney0","NumberColumnModel", "", 2,this.Model.TransferLedger.Fields["WasteRecycleMoney"]/*WasteRecycleMoney*/,"WasteRecycleMoney", false, true, true, false, false, true, 8, 130, "24.9",true, false,"0","b6360030-38de-4d99-8f81-29088e5b0dfa","","6bb28ab8-55d7-407c-bbb8-aa9f59074a94");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"ProofNo0","TextBoxColumnModel", "", 0,this.Model.TransferLedger.Fields["ProofNo"]/*ProofNo*/,"ProofNo", false, true, true, false, false, true, 0, 130, "50",true, false,"","78e524c1-ff26-4a3d-88b6-e0a2b1df657d","78e524c1-ff26-4a3d-88b6-e0a2b1df657d","388aa079-25a6-4043-9a0b-43cff561ab58");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Org0","ReferenceColumnModel", "", 0,this.Model.TransferLedger.Fields["Org"]/*Org*/,"Org", false, false, true, false, false, true, 7, 100, "19.0",true, false,"","07259205-8734-4d3e-bc78-eec289e0b7b1","07259205-8734-4d3e-bc78-eec289e0b7b1","3948b5d9-5b31-4978-9c9c-daa694b62ba5");
			GridControlBuilder.GridReferenceColumnBuilder((IUFFldReferenceColumn)column, ColumnTextAlign.Right, "ID", "Code", "Name", this.Model.TransferLedger.FieldOrg_Code/*Org_Code*/, this.Model.TransferLedger.FieldOrg_Name/*Org_Name*/, "cb4dda17-7cb5-4927-b1bb-b5facf1cfa19"
			,false,false,580,408);
            ((IUFFldReferenceColumn)column).CtrlId = "3948b5d9-5b31-4978-9c9c-daa694b62ba5";
 			((IUFFldReferenceColumn)column).IsMultiOrg  = false ;
           //foreach Reference's input filter parameter

            //foreach Reference's output set data
							
							
							
							
            ((IUFFldReferenceColumn)column).ApplyRefRelations();
			  
		 
        }





		#endregion
		

	}
}
